package com.bh.common.core.vo;

import com.bh.common.xss.Xss;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 用户对象 sys_user
 *
 * @author ruo-yi
 */
@ApiModel(value = "外部用户对象", description = "外部用户对象")
@Data
public class SysCustomerUserVo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 登录名称
     */
    @Xss(message = "用户姓名不能包含脚本字符")
    @Size(min = 0, max = 30, message = "用户姓名长度不能超过30个字符")
    private String nickName;

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空")
    @Size(min = 0, max = 11, message = "手机号码长度不能超过11个字符")
    private String phonenumber;

    /**
     * 微信小程序登录
     */
    @NotBlank(message = "微信小程序ID不能为空")
    private String openId;

    /**
     * 用户性别
     */
    private String sex;

    /**
     * 用户头像
     */
    private String avatar;


    private String customerId;
}
